# Contributor: Andy Hawkins <andy@gently.org.uk>
# Maintainer: Andy Hawkins <andy@gently.org.uk>
pkgname=py3-parametrize-from-file
pkgver=0.16.0
pkgrel=0
pkgdesc="Parametrize From File"
url="https://parametrize-from-file.readthedocs.io/en/latest/"
arch="noarch"
license="MIT"
depends="
	python3>=3.6
	py3-toml
	py3-yaml
	py3-nestedtext
	py3-tidyexc
	py3-more-itertools>=8.10
	py3-contextlib2
	py3-decopatch
	"
makedepends="
	py3-build
	py3-flit
	py3-installer
	"
checkdepends="
	py3-pytest
	py3-pytest-cov
	py3-coveralls
	py3-numpy
	"
source="https://github.com/kalekundert/parametrize_from_file/archive/v$pkgver/parametrize_from_file-v$pkgver.tar.gz"
builddir="$srcdir/parametrize_from_file-$pkgver"

build() {
	python3 -m build --no-isolation --wheel .
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/parametrize_from_file-$pkgver-py2.py3-none-any.whl
}

sha512sums="
c6ed895d42d235de349463e6764311cbf5ce8608b32a9ace4e21af46472084a8d4402b4022803a64c47b802c0209ce96e8f2ccb5027d17c62a619312d2230e19  parametrize_from_file-v0.16.0.tar.gz
"
